<?php
/**
 * Created by PhpStorm
 * author  :gogochen
 * date    :2019/12/11
 * time    :11:27
 */

namespace App\Controller;


use Hyperf\HttpServer\Contract\RequestInterface;
use App\Exception\FooException;

class BaseController extends AbstractController
{
    public function __construct(RequestInterface $request)
    {
        $token = $request->header('token');
        if(empty($token)){
            return show('error','token 缺失','','401');
        }

    }
}